package org.example.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.example.lease.model.entities.LeaseAgreement;
import org.example.lease.vo.agreement.AgreementQueryVo;
import org.example.lease.vo.agreement.AgreementVo;

/**
 * @author 宋孟林
 * @description
 * @date: 2025/5/12 16:52
 */
public interface LeaseAgreementMapper extends BaseMapper<LeaseAgreement> {
    /**
     * 根据查询条件查询租约信息
     *
     * @param page             page
     * @param agreementQueryVo agVo
     * @return page - leaseAgreement
     */
    IPage<AgreementVo> pageAgreementVoByQuery(@Param("page") IPage<AgreementVo> page,
                                              @Param("queryVo") AgreementQueryVo agreementQueryVo);
}




